<!--会员信息 start-->
<div class="user_info c_f">
	<div class="img f_l">
		<div class="face"><a href="<?php echo url('member/info/info');?>" title="更改头像"><img src="/<?php if(!empty(user()->face)){echo user()->face;}else{echo 'images/no_face.png';}?>" alt="" /></a></div>
		<p class="title"><a href="<?php echo url('member/info/info');?>" title="更改头像">编辑资料</a></p>
	</div>
	<div class="txt f_l">
		<p><span class="mr"><strong class="fs_14 mr10"><?php if(!empty(user()->nickname)){echo user()->nickname;}?></strong><em class="<?php echo OrdComment::model()->getCreditLevel(user()->userid,1)?>"></em></span><span class="mr">会员等级：<?php echo user()->memgroup['type']['zmt_title'];?><!--<em class="mem_level mem_level1">--></em></span><span class="mr">当前成长值：<strong class="c_f60"><?php if(!empty(user()->upcredit)){echo user()->upcredit;}?></strong></span></p>
			<p>交易提醒：
			<?php echo l("待付款（<strong>".$orderAmounts['notpay']."</strong>）",array('/member/index/orders','status'=>1),array('class'=>'c_999 mr'))?>
			<?php echo l("待确认收货（<strong>".$orderAmounts['notrecieve']."</strong>）",array('/member/index/orders','status'=>3),array('class'=>'c_999 mr'))?>
			<?php echo l("待评价（<strong>".$orderAmounts['notcomment']."</strong>）",array('/member/index/orders','status'=>4),array('class'=>'c_999 mr'))?>
			<?php echo l("消息（<strong>".MsgLog::model()->unreadAmount()."</strong>）",array('/member/msglog/remind'),array('class'=>'c_999 mr'))?>
			</p>
		<p><span class="mr">我的积分：<strong class="c_f60"><?php echo Yii::app()->user->points;?></strong>分</span><span class="mr">我的优惠券：<strong class="c_f60"><?php echo $ticketAmounts['available'];?> </strong>张</span></p>
	</div>
</div>  
<!--会员信息 end-->
<div class="hr_15"></div>
<!--浏览过的商品 start-->
<div class="pro_tab pub_tab" id="proTab">
	<div class="tab_hd2">
		<ul class="c_f">
			<li><a href="javascript:">浏览过的商品<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
			<li><a href="javascript:">产品收藏<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
			<li><a href="javascript:">团购推荐<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
			<li><a href="javascript:">限时抢购<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
		</ul>
	</div>
	<div class="tab_cont2 pro_list">
		<ul class="c_f list2">
        <?php 
			if(!empty($history)){ foreach($history as $key=>$value){
				$value = Product::model()->findByPk($value);
		?>
			<li class="item">
				<div class="c_img c_img140"><?php echo CHtml::link(Tool::thumb($value->zp_pic,140,140,$value->zp_name),array('/home/product/detail','id'=>$value->zp_id),array('target'=>'_blank'))?></div>
				<p class="price ff_yh"><strong class="fs_15 c_orange f_r">&yen;<?php echo $value->zp_price?></strong><del class="c_999">&yen;<?php echo $value->zp_saleprice?></del></p>
				<p class="title"><a href="<?php echo url('/home/product/detail',array('id'=>$value->zp_id));?>" title="" target="_blank"><?php echo $value->zp_name?></a></p>
				<p class="buy"><a class="btn btn_buy" href="<?php echo url('/home/product/detail',array('id'=>$value->zp_id));?>" title="点击购买">点击购买</a></p>
			</li>
        <?php 
			}}
		?>
		</ul>
	</div>
	<div class="tab_cont2 pro_list">
		<ul class="c_f list2">
        <?php 
			if(!empty($favProduct)){ foreach($favProduct as $key=>$value){
		?>
			<li class="item">
				<div class="c_img c_img140"><?php echo CHtml::link(Tool::thumb($value->product->zp_pic,140,140,$value->product->zp_name),array('/home/product/detail','id'=>$value->zp_id),array('target'=>'_blank'))?></div>
				<p class="price ff_yh"><strong class="fs_15 c_orange f_r">&yen;<?php echo $value->product->zp_price?></strong><del class="c_999">&yen;<?php echo $value->product->zp_saleprice?></del></p>
				<p class="title"><a href="<?php echo url('home/product/detail',array('id'=>$value->product->zp_id));?>" title="" target="_blank"><?php echo $value->product->zp_name?></a></p>
				<p class="buy"><a class="btn btn_buy" href="<?php echo url('home/product/detail',array('id'=>$value->product->zp_id));?>" title="点击购买">点击购买</a></p>
			</li>
        <?php 
			}}
		?>			
		</ul>
	</div>
	<div class="tab_cont2 pro_list">
		<ul class="c_f list2">
		<?php if(!empty($tuan)){ foreach($tuan as $key=>$value){?>
			<li class="item">
				<div class="c_img c_img140"><?php echo CHtml::link(Tool::thumb($value->zpt_pic,140,140,$value->zpt_title),array('/home/tuan/detail','id'=>$value->zpt_id),array('target'=>'_blank'))?></div>
				<p class="price ff_yh"><strong class="fs_15 c_orange f_r">&yen;<?php echo $value->zpt_price?></strong><del class="c_999">&yen;<?php echo $value->zpt_saleprice;?></del></p>
				<p class="title"><a href="<?php echo Yii::app()->createUrl('home/tuan/detail',array('id'=>$value->zpt_id));?>" title="" target="_blank"><?php echo $value->zpt_title;?></a></p>
				<p class="buy"><a class="btn btn_buy" href="<?php echo Yii::app()->createUrl('/home/tuan/detail',array('id'=>$value->zpt_id));?>" title="点击购买">点击购买</a></p>
			</li>
		<?php }}?>
		</ul>
	</div>
	<div class="tab_cont2 pro_list">
		<ul class="c_f list2">
		<?php if(!empty($buytime)){ foreach($buytime as $key=>$value){?>
			<li class="item">
				<div class="c_img c_img140"><?php echo CHtml::link(Tool::thumb($value->zpt_pic,140,140,$value->zpt_title),array('/home/product/detail','id'=>$value->product->zp_id, 'active'=>'promotion'),array('target'=>'_blank'))?></div>
				<p class="price ff_yh"><strong class="fs_15 c_orange f_r">&yen;<?php echo $value->zpt_price?></strong><del class="c_999">&yen;<?php echo $value->zpt_saleprice;?></del></p>
				<p class="title"><a href="<?php echo url('home/product/detail',array('id'=>$value->product->zp_id, 'active'=>'promotion'));?>" title="" target="_blank"><?php echo $value->product->zp_name?></a></p>
				<p class="buy"><a class="btn btn_buy" href="<?php echo url('home/product/detail',array('id'=>$value->product->zp_id, 'active'=>'promotion'));?>" title="点击购买">点击购买</a></p>
			</li>
		<?php }}?>
		</ul>
	</div>
</div> 
<!--浏览过的商品 end-->
